Police apologize and High Court dismisses case against them for posing with accused